//
//  SMHSettingViewController.swift
//  SMHCommerce
//
//  Created by lvzhao on 2020/6/5.
//  Copyright © 2020 lvzhao. All rights reserved.
//

import UIKit

class SMHSettingViewController: LZBaseViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        self.title = "设置"
        
        setupUI()
        // Do any additional setup after loading the view.
    }
    
    //MARK:setupUI
    func setupUI() {
        
        view.addSubview(self.settingView)
        self.settingView.snp.makeConstraints { (make) in
            make.edges.equalTo(0)
        }
    }
    //MARK:懒加载
    lazy var  viewModel: SMHSettingViewModel = {
        let viewModel = SMHSettingViewModel()
        return viewModel
    }()
       
       
       lazy var settingView: SMHSettingView = {
           let settingView = SMHSettingView.init(viewModel: self.viewModel)
           return settingView
       }()
       

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destination.
        // Pass the selected object to the new view controller.
    }
    */

}
